//
//  Constants.h
//  UCLBRTStatic
//
//  Created by myApple on 16/2/23.
//  Copyright (c) 2016年 myApple. All rights reserved.
//

#ifndef UCLBRTStatic_Constants_h
#define UCLBRTStatic_Constants_h

//公钥
#define PublicKey @"MIIBHTANBgkqhkiG9w0BAQEFAAOCAQoAMIIBBQKB/QNIUn+IBN3N9W4lvvonEsc5\
wjLc2h00+L/JISozfx00IHqZ9JEYek8YDLEU0yT5Eno6Xup9x2a0mmd+NaDX4k3c\
CYGTcH+KmohT/9AsKOiPtBKs1IjRT8FENbVihoP+E5aFX76zaExU+DKcDZpgg3C/\
wEYwDEVwHiEluK2tfyZ/G622NiIgdcvqPPKVYDKPy0OOWA9/ykqV7QRIoNQDpfzS\
dFeIF9NLWTMQtGAiGg/p6XKjEr3sHWQ1VEGJquaJ5YSodnFptIsIVVmTK79XfcEy\
k3U896F9tcreeGE+bYnx8H92vc/cUqZkzhj9au66aCdmcobmrd2+1vxjR0UCAwEA\
AQ=="

//生成房卡的url
#define GeneratorUrl @"/mobile/Qrcode/create"

//获取房卡的url（通过唯一标示符）
#define FetcherByIdUrl  @"/mobile/Qrcode/getById"

//获取房卡的url（传入所有参数）
#define FetcherByParamUrl @"/mobile/Qrcode/getByRoom"

//取消房卡的url（唯一标示符）
#define InvalidByIdUrl  @"/mobile/Qrcode/cancelById"

//取消房卡的url（通过传入参数）
#define InvalidByParamUrl @"/mobile/Qrcode/cancelByRoom"

//测试环境
//#define HEADERURL @"https://192.168.1.19:8058"
//#define POST(parment) [@"https://192.168.1.19:8058"stringByAppendingString:parment]


//公网测试环境
//#define HEADERURL @"https://14.215.118.142:6004"
//#define POST(parment) [@"https://14.215.118.142:6004"stringByAppendingString:parment]

////真实环境
#define HEADERURL @"https://api.uclbrt.com:8058"
#define POST(parment) [@"https://api.uclbrt.com:8058"stringByAppendingString:parment]


#define UI_SCREEN_WIDTH                 ([[UIScreen mainScreen] bounds].size.width)
#define UI_SCREEN_HEIGHT                ([[UIScreen mainScreen] bounds].size.height)

#define Version  @"1.0.0"

#define UIColorFrom0x(rgbValue) \
[UIColor colorWithRed:((rgbValue >> 16) & 0xFF)/255.f \
green:((rgbValue >> 8) & 0xFF)/255.f \
blue:(rgbValue & 0xFF)/255.f \
alpha:1.0f]

#define RequestError  @"uclbrt_requestError"
#define ErrorInfo     @"errorInfo"



#endif
